<ul class="boutique_comment">
	[#list list as c]
	<li id="_comment_id_${c.id}">
		<div class="boutique_comment_con clearfix">
			<div class="bc_text">
				<p class="bc_text_con">${c.textHtml!}</p>
				<div class="bc_text_info clearfix">
					<p class="bc_text_commenter"><a href="#" class="a_green2">----${(c.commentUser.username)!"匿名网友"}</a> ${c.createTime}</p>
					<p class="bc_text_operate"><a href="javascript:void(0)" class="bc_btn_replay a_orange">回复(${c.replys!'0'})</a></p>
				</div>
			</div>
			<div class="bc_photo">
			[#if c.commentUser??]
				<img src="/images/avatar/small/${c.commentUser.id}.jpg" width="60" height="60" />
			[#else]
				<img src="/images/avatar/small/default.jpg" width="60" height="60" />
			[/#if]
			</div>
		</div>
		<div class="boutique_comment_replay">
			<div class="bcr_pointer"></div>
			<form class="replyForm" action="${base}/reply.jsp" method="post">
			<input type="hidden" name="commentId" value="${c.id}"/>
			<div class="bcr_con">
				<div class="bcr_con_top clearfix"><p class="bcr_title">回复评论</p><div class="bcr_close"></div></div>
				<div class="bcr_inputArea">
					<div class="bcr_inputArea_center"><textarea name="replyText"></textarea></div>
					<div class="bcr_inputArea_bottom"></div>
				</div>
				<p class="bcr_btn_publish"><button class="btn_01" type="submit">发表</button></p>
				<ul class="bcr_list">
				</ul>
			</div>
			</form>
		</div>
	</li>
	[/#list]
	<script type="text/javascript">
	$.each($("form"), function(i, n){
		Cms.reply(n);
	});
	//回复弹出框
	$("a.bc_btn_replay").click(function(){
		var replyDiv = $(this).parents("li").find("div.boutique_comment_replay");
		replyDiv.slideToggle();
		var parentsLi = $(this).parents("li");
		var commentId = parentsLi.find("input[name='commentId']").val();
		Cms.replyList("${base}",parentsLi.find(".bcr_list"),{commentId:commentId});
	});
	
	//关闭回复框
	$("div.bcr_close").click(function(){
		$(this).parents("div.boutique_comment_replay").slideUp();
	});
	</script>
</ul>